
#include <stdio.h>

#include "PlatformFactory.h"
#include "Screen.h"

#ifdef WIN32
#include "Win32Screen.h"
#include "Win32Slave.h"
#define PLATFORM_Screen Win32Screen
#else
#include "OsxSlave.h"
#include "UnixScreen.h"
#define PLATFORM_Screen UnixScreen
#endif

Screen PlatformFactory::GetScreen()
{
	//printf("Got size %d, %d for main screen\n", size.x, size.y);
	PLATFORM_Screen screen = PLATFORM_Screen();
	return screen;
}

Slave* PlatformFactory::GetSlave(std::string remote_ip, int port, MncPoint screen_size)
{
#ifdef WIN32
    return new Win32Slave(remote_ip, port, screen_size);
#else
	return new OsxSlave(remote_ip, port, screen_size);
#endif
}